<?php

namespace App\Providers;

use App\Listeners\ExampleSubscribe;
use App\Listeners\YearActivitySendCouponSubscribe;
use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        \App\Events\ExampleEvent::class => [
            \App\Listeners\ExampleListener::class,
        ],
        'Illuminate\Database\Events\QueryExecuted' => [
            'App\Listeners\QueryListener'
        ],
    ];
//
    protected $subscribe = [
        ExampleSubscribe::class,
        //新年活动用户登录送抽奖券
        YearActivitySendCouponSubscribe::class,
    ];


}
